﻿@{
    ViewBag.Title = "修改个人信息";
}

@model Yitu.Models.Auth.User

<div class="wrap">
    <div class="join-us">
        <p class="ty-logon"></p>
        @using (Html.BeginForm("Information", "user", FormMethod.Post, new { id = "myform", @class = "form" }))
        {
            <div class="form-data">
                <label>姓名：</label>
                @Html.TextBoxFor(o => o.Name, new { @class = "form-control nofoucs", value = Model.Name, @readonly = true })
            </div>
            <div class="form-data">
                <label>手机：</label>
                @Html.TextBoxFor(o => o.Mobile, new { @class = "form-control nofoucs", value = Model.Mobile, @readonly = true })
            </div>

            <div class="form-data">
                <label>省份：</label>
                @Html.TextBox("Province", (string)ViewBag.province, new { @class = "form-control nofoucs", @readonly = true })
            </div>
            <div class="form-data">
                <label>城市：</label>
                @Html.TextBox("City", (string)ViewBag.city, new { @class = "form-control nofoucs", @readonly = true })
            </div>
            <div class="form-data">
                <label>医院</label>
                @Html.TextBox("Hospital", (string)ViewBag.hospital, new { @class = "form-control nofoucs", @readonly = true })
            </div>

            <div class="form-data">
                <label>原始密码:</label>
                <input type="password" name="oldpassword" placeholder="原始密码" />
            </div>

            <div class="form-data">
                <label>新密码:</label>
                @Html.PasswordFor(o => o.PassWord, new { @class = "form-control required", placeholder = "新密码" })
            </div>

            <div class="form">
                <div class="form-data">
                    <button type="submit" class="submit-btn">确认修改</button>
                </div>
            </div>
        }


    </div>
</div>

@section scripts
{
 <script src="~/Content/js/jquery.validate/jquery.validate.min.js"></script>
}